package com.haizhi.crm.sys.auth.service;

import com.haizhi.crm.common.model.Response;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

/**
 * Created by yangyijun on 2018/5/22.
 */
public interface RelationPermissionService {
    Response save(MultipartFile file, Long relationId, Long[] resourceIds);

    Response update(MultipartFile file, Long relationId, Long[] resourceIds);

    Response delete(Long relationId);

    Response list();

    Response detail(Long relationId);

    void download(HttpServletResponse response, String fileRelativePath);
}